<?php
global $SilasFlickrPlugin;
// **** Lightbox ****
// Set this variable to true to enable Lightbox effects. Note that if you enable Lightbox,
// Flickr notes and comments will not be supported. 
//
// For more information on Lightbox, see here: http://www.huddletogether.com/projects/lightbox2/
//
$useLightbox = false;

?>
<style type="text/css">
/* <![CDATA[ */
@import url(<?php bloginfo('home');?>/wp-content/plugins/silaspartners/flickr/photoalbum-styles.css);

/* use this line instead if you customized the stylesheet
@import url(<?php bloginfo('home');?>/wp-content/themes/YOURTHEMEDIRECTORY/photoalbum-styles.css);
*/


/* ]]> */
</style>
<script type="text/javascript">
/* <![CDATA[ */
<?php /* // Old Flickr slideshow code
function openSlideShow(id, gid) {
    var url = "http://flickr.com/slideShow/index.gne?set_id="+id
    if (gid) url = url + "&group_id="+gid
    var w = window.open(url, '_blank', 'width=500,height=500');
    if (w) w.focus()
    return false;
}
*/ ?>
function openSlideShow(id, gid) {
    username = "<?php echo $user['user']['nsid'];?>";
    var url = "http://flickr.com/";
    if(!isNaN(parseInt(gid,10))) { url += 'groups/pool/'+gid+'/show/?no_back=1'; }
    else if(!isNaN(parseInt(id,10))) { url += 'photos/'+username+'/sets/'+id+'/show/?no_back=1'; }
    else { return true; }
    var w = Math.max(screen.width-140, 750);
    var h = Math.max(screen.height-140, 400);
    var show = window.open(url, "_blank", "width=" + w + ",height=" + h + ",top=10,left=70,scrollbars=no, status=no, resizable=yes");
    try { show.focus(); } catch(err) {}
    return false;
}
/* ]]> */
</script>



<?php 
if ($useLightbox) include($SilasFlickrPlugin->getDisplayTemplate('/photoalbum-lightbox-header.html')); 
?>
<style type="text/css">
#imageData #caption{ font-weight: normal;	}
</style>